package io.renren.controller;


import com.alibaba.fastjson.JSONObject;
import io.renren.service.DictUtilsService;
import io.renren.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@RestController
@RequestMapping("dictutils")
public class DictUtilsController extends AbstractController{
	@Autowired
	private DictUtilsService dictUtilsService;
	/**
	 *
	 * @return
	 */
	@RequestMapping("/getDictList")
	public R getDictList(@RequestBody JSONObject params){
		Map<String, Object> map = dictUtilsService.getDictList(params);
		return R.ok(map);
	}
}
